<extend name="Public/base" />

<block name="body">
    <div class="main-title">
        <h2>用户余额流水表</h2>
    </div>
    <div class="data-table table-striped">
        
        <table class="table table-hover">
            <thead>
            <th>objectId</th>
            <th>用户名</th>
            <th>变化</th>
            <th>余额流水</th>
            <th>变化详细</th>
            <th>时间</th>
            </thead>
            <volist name="amountFlows" id="amountFlow">
                <tr>
                    <td>{$amountFlow.id}</td>
                    <td>{$nickname}</td>
                    <gt name="amountFlow.after_amount" value="$amountFlow.before_amount"><td class="text-success">+{$amountFlow.change_amount}</td></gt>
                    <gt name="amountFlow.before_amount" value="$amountFlow.after_amount"><td class="text-danger">-{$amountFlow.change_amount}</td></gt>
                    <td class="" style="font-size: larger;font-weight: 700;">{$amountFlow.after_amount}</td>
                    <td>{$amountFlow.detail}</td>
                    <td>{$amountFlow.createtime|time_format}</td>
                </tr>
            </volist>
         </table>
    </div>
    <div class="page">
        {$_page}
    </div>
    </block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Relation/index')}');
    </script>
</block>
